import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/jcwwx/selectAll`,
    method: 'get'
  });
}

export function addJcwwx(data) {
  return request({
    url: `/MaintenanceRecord/jcwwx/add`,
    method: 'post',
    data: data
  });
}

export function updateJcwwx(jcwwxid, data) {
  return request({
    url: `/MaintenanceRecord/jcwwx/update/${jcwwxid}`,
    method: 'put',
    data: data
  });
}

export function deleteJcwwx(jcwwxid) {
  return request({
    url: `/MaintenanceRecord/jcwwx/delete/${jcwwxid}`,
    method: 'delete'
  });
}

export function downloadJcwwx() {
  return request({
    url: `/MaintenanceRecord/jcwwx/download`,
    method: 'GET',
    responseType: 'blob'
  });
}